package com.daimakuai.service;

import com.daimakuai.dao.AdminDao;
import com.daimakuai.entity.Admin;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @author happyonion.yangtao
 * @Title: AdminService
 * @ProjectName adminb-ehind
 * @PackageName com.daimakuai.service.impl
 * @Description TODO
 * @date Create at 2018/11/29 22:40
 */
public interface AdminService {

    public AdminDao getAdminById(String id);

    int deleteByPrimaryKey(Integer id);

    int insert(Admin record);

    int insertSelective(Admin record);

    Admin selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Admin record);

    int updateByPrimaryKey(Admin record);


    /** 脏读示例 */
    List<Admin> listForDirtyRead();

    void insertForDirtyReadAndIllusion();
}
